package com.zbb.online_exam;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.transaction.annotation.EnableTransactionManagement;


/*
  扫描数据层
 */
@MapperScan("com.zbb.online_exam.mapper")

//扫描带@WebServlet、@WebFilter、@WebListener的类
//@ServletComponentScan

/**
 * 事务管理
 */
@EnableTransactionManagement
/**
 * 开始权限注解的使用
 */
@EnableGlobalMethodSecurity(securedEnabled = true,prePostEnabled = true,jsr250Enabled = true)
@SpringBootApplication
public class OnlineExamApplication {

    public static void main(String[] args) {
        SpringApplication.run(OnlineExamApplication.class, args);
    }

}
